<?php
	/**
	 * Class for creating Drag and Drop Elements
	 *
	 */
	class DragNDrop
	{
		/**
		 * Drag an drops html element and its contents
		 *
		 * @param string $elemet_id element's id to drag
		 */
		function DragNDropHTMLElement($elemet_id)
		{
			echo '<script language="JavaScript" src="/spherus_framework/core/classes/dragndrop/dragndrop.js"></script>';
			echo "
			<script type='text/javascript'>
				drag_element = document.getElementById('$elemet_id');
				drag_element.style.position = 'relative';
				drag_element.style.cursor = 'move';
				Drag.init(drag_element);
			</script>
			";
		}		
	}
?>